import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout   #check the users name
from kivy.uix.textinput import TextInput   #check the users name
from kivy.uix.button import Button
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty

class MyGrid(Widget):
    name = ObjectProperty(None)
    email = ObjectProperty(None) #the same as the kv

    def btn(self):
        print("Name: ", self.name.text, "Email: ", self.email.text)
        self.name.text = ""
        self.email.text = ""

class MyApp(App):#the name corresponding with the "MyApp", the endig "App" is not in the name
    def build(self):
        return MyGrid()  #draw all the wedgets from the GridLayout
        #return Label(text = "Hello")   #when call the build then can create the application

if __name__ == "__main__":
    MyApp().run()         #don't forget the first bracket!